<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../Public/css/basic.css"/>
<link rel="stylesheet" href="../Public/css/message.css"/>
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/sidebar.js"></script>
<script type="text/javascript" src="../Public/js/message.js"></script>
<title>三原县信息网 -- 我的消息</title>
</head>
<body>
<include file="./Member/Tpl/Public/header.html"/>
<div id="map"><img src="../Public/images/loc.gif" /> <a href="__ROOT__/member.php">用户中心</a> &gt; 我的消息</div>
<include file="./Member/Tpl/Public/sidebar.html"/>
<div id="main">
    <input type="hidden" id="root" value="__ROOT__" />
    <div class="up"> 
        <h3>我的消息</h3>
        <p class="remind" style="display:{$s}"><img src="../Public/images/valid.gif" style="position:relative;top:3px;right:3px;"/>操作成功!</p>
        <div class="tab">
            <ul>
                <li><a href="__URL__/message/act/in">收件箱</a></li>
                <li><a href="__URL__/message/act/out">发件箱</a></li>
                <li><a href="__URL__/message/act/post">发短信</a></li>
            </ul>
        </div>
        <div class="main">
            <if condition="$_GET['act'] eq in">
            <if condition="$_GET['type']">
                <ul class="details">
                    <li><span>标　题：</span>　　{$view.title}</li>
                    <li><span>发送者：</span>　　{$view.mfrom}</li>
                    <li><span>接收者：</span>　　{$view.mto}</li>
                    <li><span>时　间：</span>　　{$view.date}</li>
                    <li class="content"><span>内　容：</span>　　{$view.content}</li>
                </ul>
                <p><input type="button" value="返　回" onclick="history.back();" id="back"></p>
                <div class="re">
                    <h4>回复此短信</h4>
                    <form method="post" class="re">
                        <dl>
                            <dd>发送给：　<input type="text" name="mto" value="{$view.mfrom}" class="text" readonly="readonly"/></dd>
                            <dd>标　题：　<input type="text" name="title" value="回复：{$view.title}" class="text"/> (标题2到20位以内)</dd>
                            <dd><span class="m">内　容：</span>　<textarea name="content"></textarea>  <span class="m">(内容300位以内)</span></dd>
                            <dd><input type="submit" name="send" value="回　复" class="sub" style="border-radius:5px;"/></dd>
                        </dl>
                    </form>
                </div>
             <else />
            <form method="post">
                <table cellspacing="0">
                    <tr><th><input type="checkbox" id="all"></th><th>标题</th><th>发送者</th><th>发送时间</th></tr>
                    <volist name="in" id="value" empty="$empty">
                    <tr><td><input type="checkbox" name="select[]" class="id_select" value="{$value.id}"/></td>
                    <empty name="value.is_read">
                    <td><a href="./in/type/view/id/{$value.id}"><strong>{$value.title|cutText=8}</strong></a></td>
                    <else />
                    <td><a href="./in/type/view/id/{$value.id}">{$value.title|cutText=8}</a></td>
                    </empty>
                    <td><a href="/member.php/Index/mySpace/user/{$value.mfrom}" target="_blank">{$value.mfrom}</a></td><td>{$value.date}</td></tr>
                    </volist>
                </table>
                <input type="submit" value="删　除" name="delete" style="margin:10px 0 0 22px;width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;" onclick="return confirm('确认删除？') ? true : false"/>
            </form>
            <div id="page">{$page}</div>
            </if>
            <elseif condition="$_GET['act'] eq out" />
             <if condition="$_GET['type']">
                <ul class="details">
                    <li><span>标　题：</span>　　{$view.title}</li>
                    <li><span>发送者：</span>　　{$view.mfrom}</li>
                    <li><span>接收者：</span>　　{$view.mto}</li>
                    <li><span>时　间：</span>　　{$view.date}</li>
                    <li><span>内　容：</span>　　{$view.content}</li>
                </ul>
                <p><input type="button" value="返　回" onclick="history.back();" id="back"></p>
             <else />
            <form method="post">
                <table cellspacing="0">
                    <tr><th><input type="checkbox" id="all"></th><th>标题</th><th>接收者</th><th>发送时间</th></tr>
                    <volist name="out" id="value" empty="$empty">
                    <tr><td><input type="checkbox" name="select[]" class="id_select" value="{$value.id}"></td><td><a href="./out/type/view/id/{$value.id}">{$value.title|cutText=8}</a></td><td><a href="/member.php/Index/mySpace/user/{$value.mto}" target="_blank">{$value.mto}</a></td><td>{$value.date}</td></tr>
                    </volist>
                </table>
                <input type="submit" value="删　除" name="delete" style="margin:10px 0 0 22px;width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;" onclick="return confirm('确认删除？') ? true : false"/>
            </form>
            <div id="page">{$page}</div>
            </if>
            <elseif condition="$_GET['act'] eq post" />
            <form method="post" class="post">
                <dl>
                    <dd>发送给：　<input type="text" name="mto" value="" class="text"/> (请准确填写用户名，否则信息无法发送)</dd>
                    <dd>标　题：　<input type="text" name="title" value="" class="text"/> (标题2到20位以内)</dd>
                    <dd><span class="c">内　容：</span>　<textarea name="content"></textarea>  <span class="c">(内容300位以内)</span></dd>
                    <dd><input type="submit" name="send" value="发　送" class="sub" style="border-radius:5px;"/></dd>
                </dl>
            </form>
            </if>
            
            
        </div>
    </div>
</div>
<include file="./Member/Tpl/Public/footer.html"/>
</body>
</html>